package org.edu.modules.jxrw.api;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.edu.common.api.vo.Result;
import org.edu.modules.jxrw.entity.PkParam;
import org.edu.modules.jxrw.entity.PkmxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("edu-schedule")
//@FeignClient(name = "edu-schedule", url = "http://150.242.97.194:6100")
public interface IScheduleApi {

    /**
     * 查询排课信息
     * @param param 参数
     * @return
     */
    @PostMapping("/classSchedule/veJwPaike/list")
    Result<Page<JSONObject>> queryPaiKe(@RequestBody PkParam param);

    /** 查询课表明细列表 */
    @PostMapping(value = "/classSchedule/veJwPkmx/list")
    Result<Page<PkmxResult>> queryByPkid(@RequestParam("pkid") Integer pkid);

    /** 查询课表明细列表 */
    @PostMapping(value = "/classSchedule/veJwPkmx/list")
    Result<Page<PkmxResult>> queryXzb(@RequestParam("semid") Integer semid,
                                           @RequestParam("xzbids") String xzbids);

    /** 查询课表明细列表 edu-schedule/*/
    @PostMapping(value = "/classSchedule/veJwPkmx/list")
    Result<Page<PkmxResult>> queryLaoShiKeBiao(@RequestParam("semid") Integer semid,
                                               @RequestParam("teacherid") Integer teacherid);

    /** 查询课表明细列表 edu-schedule/*/
    @PostMapping(value = "/classSchedule/veJwPkmx/list")
    Result<Page<PkmxResult>> queryJiaoShiKeBiao(@RequestParam("semid") Integer semid,
                                                @RequestParam("jsid") Integer jsid);
}
